import { Module } from "@nestjs/common";
import { TypeOrmModule } from "@nestjs/typeorm";
import { SysRole } from "@/database/entity/SysRole";
import { SysUser } from "@/database/entity/SysUser";
import { SysUserRole } from "@/database/entity/SysUserRole";
import { UserController } from "./user.controller";
import { UserService } from "./user.service";

@Module({
    imports: [TypeOrmModule.forFeature([SysUser, SysRole, SysUserRole])],
    providers: [UserService],
    controllers: [UserController],
    exports: [UserService],
})
export class UserModule {}
